/**
 * version 1.1.7
 */
import request from 'request.js'

class apiconfig {
  constructor(config = {}) {
   
		this.pathconfig={
			login: "/user/login"
			getuserinfo:"/app/user/getuinfo",
			openlottery:"/app/Lot/getlotterlist"
		}
		 this.getuserinfo="/app/user/getuinfo";
		 this.openlottery="/app/Lot/getlotterlist";
   
  }
	getlogin(config){
		return request.get(this.pathconfig.getuserinfo,config);
	}
	getuserinfoFun(config){
		return request.get(this.pathconfig.getuserinfo,config);
	}
}

if (!global.$apiconfig) {
  global.$apiconfig = new apiconfig();
}

export default global.$apiconfig;
